<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" close="true">
        <span aria-hidden="true">×</span>
    </button>
    <h4 class="modal-title">
        <span class="fa fa-legal"></span>&nbsp;修改
    </h4>
</div>
<style>


</style>
<div class="modal-body">

    <div class="new-content">
        <form name="add_form" class="form-horizontal layui-form">
            <div class="form-group">
                <label class="col-sm-2 control-label">*名称:</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" name="name" placeholder="单位名称" value="{$detail.name}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">所属产业链:</label>
                <div class="col-sm-8">
                   <select name="typeId">
                       <option value="0">请选择产业</option>
                       {volist name="IndustrialChain" id="vo"}
                       <option {if condition="$detail.typeId eq $vo.value"} selected {/if} value="{$vo.value}">{$vo.title}</option>
                       {/volist}
                   </select>
                </div>
            </div>


            <div class="form-group">
                <label class="col-sm-2 control-label">单位地址:</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" name="address" placeholder="单位地址" value="{$detail.address}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">联系人:</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" name="contacts" placeholder="联系人" value="{$detail.contacts}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">联系电话:</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" name="phone" placeholder="联系电话" value="{$detail.phone}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">备注:</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" name="remark" placeholder="备注" value="{$detail.remark}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">状态:</label>
                <div class="col-sm-8">
                    <select name="status">
                        <option value="1" {if condition="$detail['status'] eq 1"} selected {/if}>启用</option>
                        <option value="2" {if condition="$detail['status'] eq 2"} selected {/if}>禁用</option>
                    </select>
                </div>
            </div>

            <input type="hidden" name="id" value="{$detail.id}">
        </form>
    </div>

</div>
<div class="modal-footer">
    <button type="button" class="btn btn-default btn-sm" close="true">关闭</button>
    <button type="button" class="btn btn-primary btn-sm" _event="edit">保存</button>
</div>
<script>
    layui.use(['form'], function() {
        var form = layui.form
            , layer = layui.layer;
        var layedit = layui.layedit;
        var  tree = layui.tree;
        var util = layui.util;

        layui.form.render('select');
        form.render();
    });
</script>